<!--content-->
<div class="bh-content">
    <div class="bh-ly-yw-jipiao-center">
    	<div class="bh-ly-yw-jipiao-feiji">
        	<span><a href="#" class="bh-ly-yw-jipiao-cha">查询</a><a href="#" class="bh-ly-yw-jipiao-yu">预定</a><a href="#" class="bh-ly-yw-jipiao-yu">付款</a><a href="#" class="bh-ly-yw-jipiao-yu">完成</a></span>
<!--        	<p>北京-昆明</p>2012-05-17出发-->
        </div>
    	<div class="bh-ly-yw-jipiao-center-xia">
    		<?php $form = $this->beginWidget('CActiveForm',array(
				'action' => Yii::app()->controller->createUrl('list'),
				'method' => 'get',
			))?>
        	<div class="bh-ly-yw-jipiao-center-xialeft bh-fl">
            	<div class="bh-ly-yw-jipiao-center-xialeft-top">
                        出发城市：<?php echo $form->textField($model,'departure_city',array('class'=>'bh-ly-yw-biao'))?>
                        到达城市：<?php echo $form->textField($model,'landing_city',array('class'=>'bh-ly-yw-biao'))?>
                        出发日期：<?php $this->widget('lib.widgets.my97date.CMy97DatePicker', array(
							 			'model' => $model,
							 			'attribute' => 'departure_time',
				                		'htmlOptions' => array(
				                			'class' => 'bh-ly-yw-biao'
				                		)
									));?>
                        <span><input type="submit" value="搜索" class="bh-ly-yw-center-jjingqu-sub"/></span>
                </div>
                <div class="bh-ly-yw-jipiao-center-xialeft-bottom">
      				<p class="bh-ly-yw-jipiao-center-xialeft-bottom-hua" style='display:none'>
                    	<a href="#"><span>￥1090</span>05-14周一</a><a href="#"><span>￥1090</span>05-14周一</a><a href="#"><span>￥1090</span>05-14周一</a><a href="#"><span>￥1090</span>05-14周一</a><a href="#"><span>￥1090</span>05-14周一</a><a href="#"><span>￥1090</span>05-14周一</a><a href="#" class="bh-yw-bn"><span>￥1090</span>05-14周一</a>
                    </p>
                    <div class="bh-space"></div>
                  <div class="bh-ly-yw-jipiao-hangkong">
                    	舱位：
                    <?php echo $form->dropDownList($model,'accommodation',Yii::app()->enum->options('goods.flightAccommodation'),array('class'=>'bh-ly-yw-biao'))?>
                    <span>机票价格</span>：
                    <?php echo $form->dropDownList($model,'price',Yii::app()->enum->options('goods.price'),array('class'=>'bh-ly-yw-biao'))?>
                	</div>
                <?php $this->endWidget();?>
                <table width="710" height="157" class="bh-pj-border">
                	<?php foreach ($data->getData() as $one):?>
                	<tr class="bh-ly-yw-jipiao-dianji">
                    	<td width="156">
                    		<span class="bh-ly-yw-dong">
                    		<?php echo $one->img(19,19)?>
                    		 <?php echo CHtml::value($one, 'profile.airlines')?>
                    		 </span>
                    		 机型：<?php echo CHtml::value($one, 'profile.aircraft_type')?>
                    		 |<?php echo Yii::app()->enum->lookUp('goods.flightAccommodation',CHtml::value($one, 'profile.accommodation'))?>
                    	</td>
                        <td width="180" class="bh-ly-yw-jipiao-qifei">
                        	<span>起飞：<b class="font_cr0"><?php echo CUtilHelper::date()->changeFormat(CHtml::value($one, 'profile.departure_time'),'m-d H:i')?></b> <?php echo CHtml::value($one, 'profile.departure_airport')?></span>
                        	 降落：<b class="font_cr0"><?php echo CUtilHelper::date()->changeFormat(CHtml::value($one, 'profile.landing_time'),'m-d H:i')?></b> <?php echo CHtml::value($one, 'profile.landing_airport')?>
                       </td>
                        <td width="90" class="bh-ly-yw-jipiao-jiage"><b class="bh-mrt5 bh-font18">￥<?php echo CHtml::value($one, 'priceInfo.price_dealer')?></b></td>
<!--                        <td width="96"><a href="#">查看退改签规则</a></td>-->
<!--                        <td width="55" class="bh-ly-yw-jipiao-sheng"><a href="#"><span>剩余8张</span></a></td>-->
                        <td width="107"><input type="submit" value="立即预定" class="bh-ly-yw-center-jjingqu-sub bh-href" href='<?php echo $this->createUrl('order/write',array('id'=>$one->id))?>'/></td>
                    </tr>
    				<?php endforeach;?>
                </table>
                <div class="bh-c-shuizi1-c-yy bh-mLeft20">
    				<?php $this->widget('LyLinkPager',array(
    					'pages' => $data->pagination,
    				))?>
    			</div>
              	</div>
            </div>
            <div class="bh-ly-yw-jipiao-center-xiaright bh-fl bh-fr">
            	<div class="bh-ly-yw-jipiao-center-xiaright-top">
                    <?php $this->widget('lib.ext.data.DataWidget',array(
                    	'model' => 'Ticket',
                    	'data' => array(
                    		'title' => '热门机票'
                    	),
                    	'criteria' => array(
                    		'order' => 'is_recommend DESC',
                    		'limit' => '10'
                    	),
                    	'view' => 'application.views.partials.ticket.right_lattice'
                    ));?>
                </div>
                <!--  
                <div class="bh-ly-yw-jipiao-center-xiaright-bottom bh-mtop10">
                	<?php $this->widget('lib.ext.data.DataWidget',array(
                    	'model' => 'Ticket',
                    	'data' => array(
                    		'title' => '机票点评'
                    	),
                    	'criteria' => array(
                    		'order' => 'is_recommend DESC',
                    		'limit' => '10'
                    	),
                    	'view' => 'application.views.partials.ticket.right_lattice'
                    ));?>
            	</div>
            	-->
        	</div>
        <div class="bh-clear"></div>
    </div>
    </div>
</div>
